package com.atguigu.springcloud.service.impl;

import com.atguigu.springcloud.dao.PaymentDao;
import com.atguigu.springcloud.entities.Payment;
import com.atguigu.springcloud.service.PaymentService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;

/**
 * Created with IntelliJ IDEA.
 * ClassName: PaymentServiceImpl
 * Package: com.atguigu.springcloud.service.impl
 * Description:
 * User: fzykd
 *
 * @Author: LQH
 * Date: 2023-08-28
 * Time: 21:35
 */

@Service
public class PaymentServiceImpl implements PaymentService {

    @Resource
    private PaymentDao paymentDao;

    @Override
    public int create(Payment payment){
        return paymentDao.create(payment);
    }

    //读
    @Override
    public Payment getPaymentById(Long id){
        return paymentDao.getPaymentById(id);
    }


}
